import request from '@/utils/request'

// 获取角色列表
export function getRole (params) {
    return request({
        params,
        url: '/back/getRoleList'
    })
}

//添加角色
export function addRole (data) {
    return request({
        method: 'post',
        data,
        url: '/back/addRole'
    })
}

//删除角色
export function delRole (params) {
    return request({
        method: 'delete',
        params,
        url:'/back/deleteRole'
    })
}